package com.tansty.web.controller;

import com.tansty.common.utils.CommonUtil;
import com.tansty.pojo.vo.ResultVO;
import com.tansty.service.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * description:  <br>
 * date: 2021/8/27 17:02 <br>
 * author: ztz <br>
 * version: 1.0 <br>
 */
@RestController
@RequestMapping("/category")
public class CategoryController {
    @Autowired
    CategoryService categoryService;
    @GetMapping("/category")
    public ResultVO getCategory(){
        return CommonUtil.ajaxReturn(categoryService.getCategory());
    }
}
